
#ifndef __TESTAPP_H__
#define __TESTAPP_H__

#include "../SamperHelper/SampleApp.h"
#include "Renderer/LaborTextureManager.h"
#include "Model/LaborModelDecl.h"
#include "Model/LaborModelInclude.h"
using namespace std;
using namespace Labor;


class  CTestApp : public CSampleApp
{
	//--------------------------------------------------------------------------------------
	// Member Variables
	//--------------------------------------------------------------------------------------
	CLMatrix4x4                       m_World;

	//CLTexture          *    m_pTexture;
	LaborBaseTextureMgr         *m_pTexMgr;
	CLBaseModelMgr              *m_pModelMgr;
	HBaseTexture                 m_hTexture;
	CLCamera                     m_Camera;
	HBaseModel                   m_hModel;
	CLBaseModel *                m_pModel;
public:
	CTestApp();
	~CTestApp();
public :
	//bool      init( const char* appModuleFile , const wchar_t* className, const wchar_t* window_name, int width, int height);
	bool      initApp( const char* appModuleFile );
	bool     initEnv();
public:
	//virtual function . sub-class can override or overload this function

	virtual void            onEvent(MSG& msg);
	virtual bool            updateFrame(int passedTime);
	void initRenderData();
	void Render();

};
#endif